package com.weitu.environmental.solidWaste.service.impl;

import com.weitu.environmental.solidWaste.entity.ExitDispose;
import com.weitu.environmental.solidWaste.mapper.ExitDisposeMapper;
import com.weitu.environmental.solidWaste.service.ExitDisposeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-04-17
 */
@Service
public class ExitDisposeServiceImpl implements ExitDisposeService {
    private final ExitDisposeMapper exitDisposeMapper;

    @Autowired
    public ExitDisposeServiceImpl(ExitDisposeMapper exitDisposeMapper) {
        this.exitDisposeMapper = exitDisposeMapper;
    }

    @Override
    public List<ExitDispose> findByParam(Map paramMap) {
        return exitDisposeMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return exitDisposeMapper.findByParamCount(paramMap);
    }

    @Override
    public List<ExitDispose> findAllBySwaId(String swaId) {
        return exitDisposeMapper.findAllBySwaId(swaId);
    }

    @Override
    public List<ExitDispose> findAllByParam(Map paramMap) {
        return exitDisposeMapper.findByParam(paramMap);
    }

}
